<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./css/reset.css">
  <style>
    /*
      设置文字的装饰线
      text-decoration:
            none 无任何装饰线
                  可以去除a元素默认的下划线
            underline 下划线
            overline  上划线
            line-through  中划线(删除线)
    */
    .baidu {
      text-decoration: underline;
      cursor: pointer;
    }

    .google {
      text-decoration: line-through;

      /* 设置文本的颜色(前景色) */
      color: red;
    }

    .bing {
      text-decoration: overline;
    }

    a {
      text-decoration: none;
    }
  </style>
</head>
<body>
  
  <!-- a元素默认有添加text-decoration -->
  <a href="http://www.baidu.com">百度一下</a>

  <!-- span元素也添加装饰线 -->
  <span class="baidu">百度一下</span>

  <!-- 装饰线其他的值 -->
  <span class="google">Google一下</span>
  <span class="bing">必应一下</span>

  <a href="http://www.taobao.com">淘宝一下</a>

</body>
</html>